package com.scau.clothes.dao;

import com.scau.clothes.pojo.Clothes;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;
@Mapper
@Repository
public interface ClothesDao {
    void addClothes(Clothes clothes);
    //返回衣服总数
    int getTotalClothes();
    //获取所有衣服
    List<Clothes> getAllClothes();
    Clothes getClothesById(int id);
    List<Clothes> getClothesByParas(int color,int size,int type,int area);
//    返回价格 促销价格 和促销状态
    Clothes getPriceByClothesId(int id);
}
